package com.zyy.smartcity1129.data;

/**
 * @ClassName: PatientInfo$
 * @Description: 作用
 * @Author: letquit
 * @CreateDate: 1/12/2021$
 * @Version: 1.0
 */
public class PatientInfo {
    private int id;
    private String name;
    private String sex;
    private String idCard;
    private String birthday;
    private String phonenumber;
    private String address;

    public PatientInfo(int id, String name, String sex, String idCard, String birthday, String phonenumber, String address) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.idCard = idCard;
        this.birthday = birthday;
        this.phonenumber = phonenumber;
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public PatientInfo(String name, String sex, String idCard, String phonenumber) {
        this.name = name;
        this.sex = sex;
        this.idCard = idCard;
        this.phonenumber = phonenumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        if (sex.equals("0")) {
            sex = "男";
        } else if (sex.equals("1")) {
            sex = "女";
        }
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
